import request from '@/utils/request'

// 余额列表
export function balance(query) {
  return request({
    url: '/system/userAccount',
    method: 'get',
    params: query
  })
}

// 流水
export function history(query) {
  return request({
    url: '/system/userAccount/listAccountRecord',
    method: 'get',
    params: query
  })
}
// 流水/月
export function historyMonth(query) {
  return request({
    url: '/system/userAccount/listAccountRecordMonth',
    method: 'get',
    params: query
  })
}
// 流水/年
export function historyYear(query) {
  return request({
    url: '/system/userAccount/listAccountRecordYear',
    method: 'get',
    params: query
  })
}



// 退款
export function historyRefund(query) {
  return request({
    url: '/system/userAccountRecordOrderSingleItem',
    method: 'get',
    params: query
  })
}